-# -*- encoding: utf-8 -*-
-# Puppet Library
-# Copyright (C) 2014 drrb
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
!!!
%html
  %head
    %meta{ :charset => "utf-8" }
    %title Puppet Library
    %link{ :href => "https://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css", :type => "text/css", :rel => "stylesheet" }
    -#%link{ :href => "https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap-theme.min.css", :type => "text/css", :rel => "stylesheet" }
    /[if lt IE 9]
      %script{:src => "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"}
      %script{:src => "https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"}
    %style
      :plain
        body {
          padding-top: 50px;
        }
        input.search-query {
            padding-left:32px;
        }
        form.form-search {
            position: relative;
        }
        form.form-search:before {
            content:'';
            display: block;
            width: 14px;
            height: 14px;
            background-image: url(http://getbootstrap.com/2.3.2/assets/img/glyphicons-halflings.png);
            background-position: -48px 0;
            position: absolute;
            top:10px;
            left:26px;
            opacity: .5;
            z-index: 1000;
        }
  %body
    .navbar.navbar-inverse.navbar-fixed-top{ :role => "navigation" }
      .container
        .navbar-header
          %button.navbar-toggle{ :type => "button", "data-toggle" => "collapse", "data-target" => ".navbar-collapse"}
            %span.sr-only Toggle Navigation
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          %a.navbar-brand{:href => '/'} Puppet Library
        .collapse.navbar-collapse
          %ul.nav.navbar-nav
            %li.active
              %a{:href => '/'} Modules
            %li
              %a{:href => 'https://github.com/drrb/puppet-library', :target => "puppet-library"} Help
          %form#module-search.navbar-form.navbar-right.form-search{ :action => "/", :method => "get", :role => "form" }
            .input-group
              %input.form-control.search-query{ :name => "search", :type => "search", :placeholder => "Search modules" }
              %span.input-group-btn
                %button.btn.btn-primary{ :type => "submit" } Search
    %script{ :src => "https://code.jquery.com/jquery-2.1.0.min.js" }
    .container
      = yield
    %script{ :src => "https://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js" }
